<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page isELIgnored="false"%>
<html>
<head>
<title>Login page</title>

</head>

<body>
<form action ="login" method ="post">
<p>

	<label for ="username">Username:</label>
	<input type ="text" id="username" name="username"/>
	
</p>
<p>
	<label for ="password">Password:</label>
	<input type ="password" id="password" name="password"/>
</p>
<p>
	<input type="submit" value="Submit"/>
</p>
</form>

<p style="color:red">
<c:if test="${param.error == 'invalidLoginPassword'}">
Invalid login or password.Please ckeck and try again.
</c:if>
</p>
<p style="color:blue">
	<c:if test="${param.error == 'loginRequired'}">
	You are currently logged off.Please log in.
	</c:if>
</p>
</body>
</body>
</html>